package edu.neumont.pro180._2009_q2.network;

import java.util.List;

import edu.neumont.pro180._2009_q2.GamePieceMove;
import edu.neumont.pro180._2009_q2.interfaces.ICommand;

public class ComplexMove extends GamePieceMove {

	List<GamePieceMove> commands;

	@Override
	public void execute() {
		for (ICommand c : commands) {
			c.execute();
		}
	}

	@Override
	public void undo() {
		for (ICommand c : commands) {
			c.undo();
		}
	}

	public ComplexMove(List<GamePieceMove> commands) {
		this.commands = commands;
	}

}
